#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project : gtmsAutoTestProject 
@File    : base_android_api.py
@IDE     : PyCharm 
@Author  : Mario
@Date    : 2022/8/24 18:19 
@Describe: 安卓应用接口请求基类
"""
from APIs.base_api import BaseApi


class BaseAndroidApi(BaseApi):
    def __init__(self, environment):
        super().__init__()  # 继承父类构造函数
        self.type = "安卓端"

    def get_headers(self) -> object:
        headers = {
            'x-http-screenheight': '1920',
            'x-http-token': '',
            'x-http-screenwidth': '1200',
            'x-http-channel': 'app',
            'x-http-osversion': '7.1',
            'x-http-devicetype': 'android',
            'x-http-version': '1.1.0',
            'x-http-deviceuid': '762_9527',
            'Content-Type': 'application/json;charset=UTF-8; charset=UTF-8',
            'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 7.1; CPN-W10 Build/HUAWEICPN-W10)',
            'Host': 'api-test.gtmsh.com',
            'Connection': 'Keep-Alive',
            'Accept-Encoding': 'gzip',
            'Cookie': 'SERVERID=k8s-ingress.gtmsh.com:10080'
        }
        return headers
